import {
  axios
} from '@/utils/request'
// 软件列表
function getSoftList (data) {
  return axios({
    url: '/software-service/software/list',
    method: 'get',
    params: data
  })
}
// 所有软件
function getAllSoft () {
  return axios({
    url: '/software-service/software/select',
    method: 'get'
  })
}
// 新增软件
function addSoft (data) {
  return axios({
    url: '/software-service/software',
    method: 'post',
    data
  })
}
// 编辑软件
function editSoft (data) {
  return axios({
    url: '/software-service/software',
    method: 'put',
    data
  })
}
// 删除软件
function deleteSoft (data) {
  return axios({
    url: '/software-service/software',
    method: 'delete',
    data
  })
}
// 软件详情
function detailSoft (id) {
  return axios({
    url: '/software-service/software/info',
    method: 'get',
    params: id
  })
}

export default {
  getSoftList,
  getAllSoft,
  addSoft,
  editSoft,
  deleteSoft,
  detailSoft

}
